@use './vars.scss';
body {
  background: #eee;
  margin: 0;
  padding: 0;
}
.button {
  width: 100px;
  background: #fff;
  color: vars.$text-color;
  height: 35px;
  border: 1px solid vars.$border-color;
  border-radius: vars.$border-radius;
  cursor: pointer;
}
.button-primary {
  width: 100px;
  background: vars.$primary-color;
  color: vars.$text-color;
  height: 35px;
  border: 1px solid vars.$border-color;
  border-radius: vars.$border-radius;
  cursor: pointer;
  color: #fff;
  &:hover {
    background-color: vars.$primary-color-hover;
  }
}
.button-secondary {
  &:hover {
    background-color: #eef;
  }
}
.button-text {
  border: none;
  background: none;
  cursor: pointer;
  &:hover {
    color: vars.$primary-color;
  }
}
.button-red {
  cursor: pointer;
  border: none;
  background: none;
  &:hover {
    color: #f00;
  }
}
.input {
  width: 100%;
  padding: 5px;
  height: 25px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.textarea {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: vars.$primary-color;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  .item {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
    .label {
      font-size: 16px;
      width: 80px;
    }
  }
  .tool {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

table {
  width: 100%;
  border-collapse: collapse; /* 合并表格边框 */
}
th,
td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
  max-width: 200px;
}
td {
  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 隐藏溢出的内容 */
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}
th {
  background-color: #f2f2f2; /* 表头背景色 */
}
tr:nth-child(even) {
  background-color: #f9f9f9; /* 偶数行的背景色 */
}
tr:hover {
  background-color: #f1f1f1; /* 鼠标悬停时的行背景色 */
}
